<template>
  <svg class="icon" aria-hidden="true">
    <use :xlink:href="svgName"></use>
  </svg>
</template>

<script lang="ts">
export default {
  name: 'SvgIcon',
}
</script>

<script lang="ts" setup>
import { computed } from '@vue/reactivity'
import { ref, reactive } from 'vue'
const props = defineProps(['icon'])
const svgName = computed(() => {
  return '#' + props.icon
})
</script>

<style scoped>
.icon {
  height: 1em;
  width: 1em;

  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
